package com.be.beadmin.project.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Description: 团队主表
 * @author: Jiaming Zheng
 * @Date: Create in 21:18 2023/1/31
 * @Modified By:
 **/

@Entity
@Table(name="T_PM_Team")
@Getter
@Setter
public class Team extends BaseEntity {



    @Column(name = "TeamCode",columnDefinition = "VARCHAR(50) COMMENT '团队编号' ")
    private String  teamCode;

    @Column(name = "TeamName",columnDefinition = "VARCHAR(50) COMMENT '团队名称' not null")
    private String  teamName;


    @Column(
            name = "State",
            nullable = true,
            columnDefinition = "decimal(1) default 0 COMMENT '是否可用' "
    )
    protected Integer state = 0;


    @Column(name = "Memo",columnDefinition = "VARCHAR(50) COMMENT '备注' ")
    private String memo;


    @Override
    public String toString() {
        return "Team{" +
//                "serialNo='" + serialNo + '\'' +

//                ", projectName='" + projectName + '\'' +
                ", teamCode='" + teamCode + '\'' +
                ", teamName='" + teamName + '\'' +
                ", memo='" + memo + '\'' +

                ", id='" + id + '\'' +
                ", createTime=" + createTime +
                ", createId='" + createId + '\'' +
                ", createName='" + createName + '\'' +
                ", updateTime=" + updateTime +
                ", updateId='" + updateId + '\'' +
                ", delete=" + delete +
                '}';
    }
}
